import request from '@/utils/request'
const prefix = '/md_sys_auth'

export function login(data) {
  return request({
    url: `${prefix}/login`, method: 'post', data
  })
}

export function auth(loginName) {
  return request({
    url: `${prefix}/auth`, method: 'post', data: { loginName }
  })
}

export function logout() {
  return request({
    url: '/demo/user/logout',
    method: 'post'
  })
}
